<!-- Description -->
<section id="description" class="card">
    <div class="card-header">
        <h4 class="card-title">Description</h4>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>Default vertical menu is full width. You may want change that behavior and make the menu compact at page level or at template level. You can experience compact menu in left side menu.</p>
            </div>
            <div class="alert bg-success alert-icon-left mb-2" role="alert">
                <span class="alert-icon"><i class="la la-pencil-square"></i></span>
                <strong>Experience it!</strong>
                <p>This page contain compact menu example, check at the left hand side of the page.</p>
            </div>
        </div>
    </div>
</section>
<!--/ Description -->

<!-- CSS Classes -->
<section id="css-classes" class="card">
    <div class="card-header">
        <h4 class="card-title">CSS Classes</h4>
        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
        <div class="heading-elements">
            <ul class="list-inline mb-0">
                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                <li><a data-action="close"><i class="ft-x"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>This table contains all classes related to the vertical fixed navigation option.</p>
                <p>All these options can be set via following classes:</p>
                <div class="table-responsive">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>Classes</th>
                                <th>Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <th scope="row"><code>.menu-collapsed</code></th>
                                <td>To create vertical compact menu, you need to add <code>.menu-collapsed</code> class in <code>&lt;body&gt;</code> tag. Refer HTML markup line no 4.</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ CSS Classes -->
<!-- HTML Markup -->
<section id="html-markup" class="card">
    <div class="card-header">
        <h4 class="card-title">HTML Markup</h4>
        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
        <div class="heading-elements">
            <ul class="list-inline mb-0">
                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                <li><a data-action="close"><i class="ft-x"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>This section contains HTML Markup to create vertical compact menu. It define where to add css classes to make vertical compact menu.</p>
                <ul>
                    <li><span class="text-bold-600">Line no 4:</span> Contain the <code>.menu-collapsed</code> class to set vertical compact menu.</li>
                </ul>
                <pre data-line="4" class="language-markup">
                  <code class="language-markup">
                      &lt;!DOCTYPE html&gt;
                        &lt;html lang="en"&gt;
                          &lt;head&gt;&lt;/head&gt;
                          &lt;body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-collapsed"&gt;

                            &lt;!-- fixed-top--&gt;
                            &lt;nav role="navigation" class="header-navbar navbar-expand-sm navbar navbar-with-menu fixed-top navbar-dark navbar-shadow navbar-border"&gt;
                                ...
                            &lt;/nav&gt;

                            &lt;!-- BEGIN Navigation--&gt;
                            &lt;div class="main-menu menu-dark menu-fixed menu-shadow"&gt;
                                ...
                            &lt;/div&gt;
                            &lt;!-- END Navigation--&gt;

                            &lt;!-- BEGIN Content--&gt;
                            &lt;div class="content app-content"&gt;
                                &lt;div class="content-wrapper"&gt;
                                    &lt;!-- content header--&gt;
                                    &lt;div class="content-header row"&gt;
                                        ...
                                    &lt;/div&gt;
                                    &lt;!-- content header--&gt;

                                    &lt;!-- content body--&gt;
                                    &lt;div class="content-body"&gt;
                                        ...
                                    &lt;/div&gt;
                                    &lt;!-- content body--&gt;

                                &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;!-- END Content--&gt;

                            &lt;!-- START FOOTER DARK--&gt;
                            &lt;footer class="footer footer-dark"&gt;
                                ...
                            &lt;/footer&gt;
                            &lt;!-- START FOOTER DARK--&gt;

                          &lt;/body&gt;
                        &lt;/html&gt;
                  </code>
                </pre>
            </div>
        </div>
    </div>
</section>
<!--/ HTML Markup -->

<!-- PUG Code -->
<section id="pug-configuration" class="card">
    <div class="card-header">
        <h4 class="card-title">PUG Configuration</h4>
        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
        <div class="heading-elements">
            <ul class="list-inline mb-0">
                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                <li><a data-action="close"><i class="ft-x"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>Modern Admin use PUG as template engine to generate pages and whole template quickly using node js, for getting start with PUG usage & template generating process please refer template documentation.</p>
                <h5 class="card-title mt-2">PUG Variables</h5>
                <p>This table contains required PUG variables to generate vertical compact menu.</p>
                <div class="table-responsive">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>Block</th>
                                <th>Variable</th>
                                <th>Datatype</th>
                                <th>Value</th>
                                <th>Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <th scope="row"><code>verticalMenuConfig</code></th>
                                <th scope="row"><code>menuCollapsed</code></th>
                                <td><code>boolean</code></td>
                                <td><code>true</code></td>
                                <td><code>verticalMenuConfig</code> block has a <code>menuCollapsed</code> variable, You need to set that variable to <code>true</code> to enable compact menu at template level.
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="alert bg-info alert-icon-left mb-2" role="alert">
                    <span class="alert-icon"><i class="la la-info"></i></span>
                    Modern Admin Template <a href="https://pixinvent.com/modern-admin-clean-bootstrap-4-dashboard-html-template/documentation" target="_blank" class="white"><u>documentation</u></a> has full list of all blocks, datatype, variables and their description table. Please review it for more configuration options.
                </div>
                <h5 class="card-title mt-2">PUG Code</h5>
                <p>Use following PUG code to generate page or template having vertical compact menu.</p>
                <ul>
                    <li><span class="text-bold-600">Line no 23:</span> Set <code>menuCollapsed</code> variable value as <code>true</code> in <code>verticalMenuConfig</code> block.</li>
                </ul>
                <p>If you want to use vertical compact menu options on page level you need to define it on page it self. This template has one example pug file for <code>vertical-nav-compact-menu.pug</code>, however you can use it on template level but it will generate whole template have vertical fixed navigation.</p>
                <pre data-line="24" class="language-pug">
              <code class="language-pug">
                extends ../base

                //- Template customization
                //------------------------
                block templateConfig
                    - var templateCustom = "vertical-layout vertical-menu-modern"
                    - var dataMenu = "vertical-menu-modern"

                //- Page level customization
                //------------------------
                block pageConfig
                    - var logoType = 'light'

                block navbarConfig
                    - var navbarPosition = "fixed-top"
                    - var navbarColor = "navbar-semi-dark"
                    - var navbarShadow = true

                block verticalMenuConfig
                    - var menuType = "menu-fixed"
                    - var menuColor = "menu-dark"
                    - var menuOpenType = "menu-accordion"
                    - var menuShadow = true
                    - var menuCollapsed = true

                block footerConfig
                    - var footerType = "footer-static"
                    - var footerColor = "footer-light"
                    - var footerBorder = true

              </code>
              </pre>
            </div>
        </div>
    </div>
</section>
<!--/ PUG Code -->

<!-- Page Level Compact Menu -->
<section id="page-level" class="card">
    <div class="card-header">
        <h4 class="card-title">Page Level Compact Menu</h4>
        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
        <div class="heading-elements">
            <ul class="list-inline mb-0">
                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                <li><a data-action="close"><i class="ft-x"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>This section contains JavaScript code to enable compact menu at page level only. You must include following js code in a custom javascript file and must include on that page only where compact menu is required.</p>

                <pre data-line="12" class="language-javascript">
                    <code class="language-javascript">
                        $.app.menu.collapse();
                    </code>
                </pre>
            </div>
        </div>
    </div>
</section>
<!--/ Page Level Compact Menu -->
<!-- Template Level Compact Menu -->
<section id="template-level" class="card">
    <div class="card-header">
        <h4 class="card-title">Template Level Compact Menu</h4>
        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
        <div class="heading-elements">
            <ul class="list-inline mb-0">
                <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                <li><a data-action="close"><i class="ft-x"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="card-content">
        <div class="card-body">
            <div class="card-text">
                <p>This section contains JavaScript code to enable compact menu at template level. You must set the compactMenu variable to "true" in the app.js file found at this page "app-assets/js/core/app.js". We have already added that code in app.js file where you can just change false to true.</p>

                <pre data-line="12" class="language-javascript">
                    <code class="language-javascript">
                        var compactMenu = true;
                    </code>
                </pre>
            </div>
        </div>
    </div>
</section>
<!--/ Template Level Compact Menu -->